Added support for ejabberd

Within ejabberd, RTLD_NEXT does not seem to work, so we also have to
look for OpenSSL by name