Use int as the underlying type for libgit2 enums

The latest LLVM complains that we're using a non-integral type as the underlying type, which it doesn't allow.

This obviates the need for #181.