Win32: fix version checks