build fix on windows with msvc12