c++: tests: add `extern "C"` in header files, i.e. only present in `./unittests`