Misc. updates.

Fixed MSVC warning and updated code for libgit2 v0.20.0 release.