Vc fix 1.12

Several fixes for the Visual Studio project files are backported from master to 1.12 and a unique commit (deleting YAMG) is adressed as well.