Rearrange winver detection code and cache the winver value we
determined in the PDB to speed up.

3 files changed