Update to latest libgit2.
Update to new options structure names.
Silence a compiler warning.