Replaced build_all.sh with a makefile.

This allows faster, more parallelized builds and easier management of dependencies.