The USE_OPENSSL constraint in dh_test does not seems to be necessary anymore, the test runs with PKCS#11 as well.