Need to set -lssl -lcrypto and do so outside the --with-openssl code