win32: fix some win32 warnings.