Update to latest libgit2 API changes.

This fixes #381.
You need to call `git_strarray_free(&problems)` here.