Adjust to libgit2 changes