Added support for more recent version of V8.