Bring back support for building rugged without CMake.

But we're now printing out warnings, so people will know that Rugged
built without CMake does not correctly support some features.
Make sure that the libgit2 version we build is threadsafe.

This is especially interesting on Rubinius, where rugged/libgit2 code
can actually be executed in different threads concurrently.