Try using libgit2 from a stable tarball.