Fix the build with libgit2/master