fix build with msvc 12