Visual C++ 2010 compatibility