fixed build with msvc