Fix autogen.sh with recent automake version