c++11 compatibility fix for MSVC.