use GetVersionEx for OS version info; mingw doesn't have VersionHelpers