Migrate the project to VS2012

Made changes to make the project compile and run in VS2012

Also many files have somehow been modified, check them all in as well