Explicitly set the Xcode build directory in build.sh

Xcode allows users to select either a shared build directory (in /Users/Shared/*) or project-specific. The `build.sh' script assumed the latter. This commit explicitly sets the build output directory for each call to xcodebuild, permitting builds in environments with either Xcode configuration.