Move from VS2012 to VS2010.
Use standard smart pointers.