Add build scripts.

This adds scripts to make the process for installing from Github the same as the process for installing from the generated C sources. This would allow us to keep the HEAD option in the new Homebrew formula instead of breaking it out into a different formula.