[z2278] Add support for VS2012 building.

[ci skip] for make travis happy ;)

(based on commit 3c73ecc)
(based on commit 6f97021)
(based on commit 3c9fca4)

(based on commit 1300724)