Check CMake TLS functioning

CMake itself is built with SSL by default. Sometimes a user may mistakenly build CMake itself without SSL support. This is generally not workable as the vast majority of Internet sites require SSL / TLS to function. Confusing errors result for CMake network operations like file(DOWNLOAD) in this case.

In our projects using CMake, we use this simple check_tls: