Relax autoconf requirement and add autogen script