openssl: make engines support dynamically configurable (based on a patch by puchu)