fixed bug with openssl calling initializer functions more than once