Add autogen.sh for automatically preparing build