fix compilation for msvc2012