fix for msvc build