Fixing compilation errors for win32.