Add missing functions to libgit2