Update libgit2 to make sure we always build with -fPIC.
Update tests for changes in libgit2.