Rework the build process:

* Rewrite the Makefile. This one is somewhat more idiomatic.
* Generate version files with shellscripts, rather than rubyscripts.
* Use gox to crosscompile.

TODO:

* Just generate the version files from the Makefile; no need for scripts.
* Makefile dependency tracking still has issues.