Fixing compile errors on MSVC.