fix win32 build errors