Convert from autoconf to CMake
Update to latest trunk of libgit2