move build.sh to autogen.sh