find openssl after setting CMAKE_REQUIRED_LIBRARIES

* otherwise build of curl_cv_recv fails (can't find openssl libs)
* curl_cv_recv is part of curl/CMake/OtherTests.cmake
* this matches what curl/CMakeLists.txt does, so not sure what CMake developers were thinking