Fix msvc build