Fix msvc compiler error