Add support for VS2012.

Factored out common VS code into msvc-vscommon.lua
Fix Win32 64-bit bootstrap build error.