follow master branch of libgit2
removed unused members