Improve the Makefile to use automatic dependency generation and some other niceties to make building less of a pain.