fix build for msvc12