Fix Win32/MSVC compilation errors.