Get it compiling under VS2012 Express
Fix up runtime errors caused by <= instead of <
Add some things to be ignored by Git