test: add mac to test-os

Fix test from 30701d6.
benchmark: update misc to new v8 API
src: Replace macros with util functions
build: fix --without-ssl build

Build breakage accidentally introduced in 8e29ce9 during code cleanup.

HAVE_OPENSSL is always defined (as either 0 or 1) so use #if rather
than #ifdef.

Fixes #5979.