build libgit2 and dependencies