Ported to NAN, compiles on 0.11.8.