windows: Fix MSVC build breakage

Fix build breakages on VC6 and vista PSDK.