configure: Do stricter GCC checking.

$GCC might be true for clang as well but clang does not support gcov coverage
testing.