Update to latest libgit2 changes.
Merge pull request #356 from libgit2/arthur/update-libgit2

Update to latest libgit2 changes.