Switched to autotools from the home-built Makefile.