Fixed compilation under MSVC