fix build for MSVC