Modified to work on recent Xcode builds, updated build instructions to use Homebrew instead of Fink.