Conversion from VS2012 to VS2010