Fix msvc compilation