Fixed compilation and test failures with V8.6.
OpenBSD-Regress-ID: c68c0e5a521cad7e7f68e54c54ebf86d6c10ee1d
OpenBSD-Regress-ID: ffc77464320b6dabdcfa0a72e0df02659233a38a