Latest Changes V0.21 + 1 of libgit2

The latest version of pygit2 doesn't build against the latest version of libgit2, this Pull Requests fixes the changes from libgit2 in pygit2. Although does not fix implementation, I'll start on fixing implementation if these changes appear sane to begin with.