Fix compilation for libgit2 0.20.0.

This temporarily removes some features, such as credentials
support and some progress callbacks.