fix MSVC 2010 compatibility issue