Updated makefiles and .gitignore to use autogen.sh.