improve failure handling 

Currently, if Rake breaks, sometimes it exits with 0.
This reports build as passing instead of failing.

This PR makes sure we continue running OSX tests if iOS failed,
and exit with 1.
Merge pull request #1816 from mneorr/patch-1

improve failure handling