Fix OpenSSL checks/linking in modules