Bumped libgit2 submodule to latest development.

Also fixed compilation problems that resulted form smaller API changes
in the recent libgit2 development and added a FIXME for one thing that
needs more work.