Fixed compilation with MSVC.