Fix compilation errors on Win32.