Update scripts to work with XCode 6.1 on Yosemite with GitHub changes

Hello,

Following upgrading to Yosemite, XCode 6.1 and what appear to be GitHub changes, the build scripts did not work for me. The changes attached resolve my issues, and hopefully can be integrated.

Thanks,

Alex 
The `-3` parameter is still used in your version. That's why.