fix MSVC build