fix a couple deprecation warnings for Win build
fix a couple deprecation warnings for Win build

GetVersionEx is considered deprecated in Windows, replace with the new greatness (which is much tidier).
JanMarvin/rstudio,JanMarvin/rstudio,JanMarvin/rstudio,JanMarvin/rstudio,JanMarvin/rstudio,JanMarvin/rstudio,JanMarvin/rstudio,JanMarvin/rstudio,JanMarvin/rstudio