Add the autotools foo

This replaces the dummy Makefile with a proper autotools setup.