Fixed compilation errors in Win32