Cope with latest libgit2 changes