Try compiling libgit2 from source.