compile fixed for Win32 mode