build: added support for Visual Studio 2012

Based on a similar change in libuv: joyent/libuv@bc5fa794b96049e39e7fc1192137db36e1dc4dc8