Use standard git2 lib.

One has to call git_threads_init when using a git2 lib build with
threadsafe on.
Use lower case hex numbers and use unix line endings.