fixed #1749: Fixed compilation errors for win32.