fixed build script for OS X Yosemite