Upgrade to VS2012. Some errors fixed.