Code looks like unformatted shit, has memory leaks, but at least it compiles with new V8.