Use libgit2 with threads

I compiled libgit2 with thread support and got no crashes so far. I think it could be the time to enable in in our releases.
Yeah it is, however, we do not know when to call _shutdown in the explorer extension. Thus, we have to leak memory here. :(