Ported to NAN, compiles on 0.11.8.

In response to #17 and #26, here is a patch that makes use of NAN.