in build.sh, retry builds if it looks like xcodebuild crashed.

We've seen both Xcode 4 and Xcode 5 crash while building xctool.  To
mitigate, we're wrapping our build in some retry logic.