Use libgit2 with threads