Fixed build script for VS2012+