Fixed compilation issue in MSVC