transfer openssl engine from gcc to g++