Imported my standard .gitignore, which includes some new additional patterns.
A few trivial fixes to get the projects compiling under VS2012.