Use CMake when building the vendored libgit2.

* [ ] ~~Make cross compilation work again.~~
* [x] Update the gemspec to include all CMake files.
* [ ] ~~Wait for https://github.com/libgit2/libgit2/pull/1834 to be merged into libgit2.~~ See ac8de27.