build: fix compilation on OpenSSL 3.0