upgrade build.cmd to VS2012 compatibility