Win32 compatibility fix