Fix build script to work with both VS12 and 13
Merge pull request #595 from tomfulton/fix/M-250

Fix M-250: Update build script to work with VS12 and VS13