libgit2 compatibility fix.