Harden MSBUILD base script against various VS installations.
Optimize VS projects and common props.
Merge pull request #1030 from evoskuil/master

Simplify VS project configs and harden MSBUILD script