buildsys: add support for profiling the testsuite with gcov