This adds a version that was tested at least with V8 6.8 and a wrapper to switch between both -- using ifdefs in the code is not reaonable as there would be too many.