Stop build-osx.sh on errors.
Merge pull request #414 from dbenamy/patch-1

Stop build-osx.sh on errors.