Make it work with mainline git2-rs