Fixed compilation for MSVC