Fixing compile errors on windows.