fix:Added autogen script and cleaned up configure and Makefile.