Fix for compilation with MSVC.