When we bump to libgit2 0.21 we can remove the `extern "C"` code from the header and class templates.