Better checking of library versions.

* Check Boost and OpenSSL at compile-time, not run-time.
* Move checking of GCC and MSVC to CheckLibraryVersions.cpp.
* Get rid of run-time checking calls.