Updated to work with libgit2 v0.20.0