fix automake --foreign option in autogen.sh