Fix the check for autoheader in eglib/autogen.sh and libgc/autogen.sh too.