openssl: backport build fix when hardware support is used