title: Can't build latest libcurl on RHEL 7.3
body: <p>What's the proper way to fix this compilation error so I can install the latest libcurl on RHEL 7.3?</p>
  
  <p>I've been able to get the latest openssl, build, and install it. <code>OpenSSL 1.1.1-dev  xx XXX xxxx</code> is reported by <code>openssl version</code> now. Latest curl is cloned/pulled from <code>https://github.com/curl/curl.git</code>. Here's the bash script fragment I'm using:</p>
  
  <pre><code>CD=$(pwd)
  CPPFLAGS="-I$CD/zlib -I$CD/openssl -I$CD/openssl/include" 
  LDFLAGS="-L$CD/zlib -L$CD/openssl" 
  LIBS="-ldl" 
  cd curl
  ./buildconf
  ./configure --disable-shared --with-zlib --with-ssl
  make
  make install
  </code></pre>
  
  <p>Running the batch with <code>sudo</code>, <code>make</code> completes without errors. <code>make install</code> produces this:</p>
  
  <pre><code>  CC       libcurl_la-openssl.lo
  vtls/openssl.c: In function 'Curl_ossl_seed':
  vtls/openssl.c:279:5: error: implicit declaration of function 'RAND_egd' [-
  Werror=implicit-function-declaration]
     int ret = RAND_egd(data-&gt;set.str[STRING_SSL_EGDSOCKET]?
     ^
  cc1: some warnings being treated as errors
  make[2]: *** [libcurl_la-openssl.lo] Error 1
  make[2]: Leaving directory `/home/john/curl/lib'
  make[1]: *** [all] Error 2
  make[1]: Leaving directory `/home/john/curl/lib'
  make: *** [all-recursive] Error 1
  </code></pre>