build: Update autogen.sh and make SYSROOT available.
This also drops support for gcov which should not go into the generic build scripts.