Compatibility with latest pygit2