Fix win32 support