Fix build script for systems without VS2012