Added check for openssl and memcached define