Modernize the codebase a little bit

I didn't know autotools when I started this, I still don't, but it took a bit of work for me to get this project to build, and I wanted to make it easier for others. Because, again, way more trouble than it had any right to be. Hopefully this leaves things a little better.