Fix Win32 compatibility