Run autogen.sh in the build script. Fix comfig.rpath issue.