fix win32 problems