Fix a building issue compiling with msvc 2010