build: add support for Visual Studio 2012

This is pretty straightforward. The shared build (`vcbuild shared`) fails on tests, but that's a problem with Visual Studio 2010 as well, so it's not within the scope of this pull request.