v8: unbreak freebsd build

reland de8c0a5

Fixes #7020 and #7021