Replace old broken build system with autotools

The old build system was broken (it required but did not include a
configure script, etc).  The easiest fix by far is to replace it with
autotools.  I used about the simplest possible configuration that will
build on a modern system and properly detect the X11 and GTK+ 2.0
libraries.