build: add support for Visual Studio 2012

Closes #722