Update defs for libgit2 0.18

These are automaticatically generated definitions, with many
inaccuracies.