Fix build after latest changes in libgit2