updating build script to use autogen.sh