Updating the libgit2 to current version

Some adaptations were necesary, but it mainly updates the libgit2.
They are dealing with the ssh transport. Not yet implemented.

re #6175