Add basic autogen.sh

Since the buildsystem is now automake based, and a simple autoreconf doesn't work, this adds a basic autogen.sh to automate building the configure script.