make crypto code compile with openssl 1.1.x