HDFS-16654. Link OpenSSL lib for CMake deps check (#4538)

* The check_c_source_compiles fails on Windows
  while linking with an "unable to resolve
  external symbol" error.
* This PR links OpenSSL lib for this check to
  fix this issue.
1 file changed