port library to use NAN

This patch should fix compatibility with node.js 0.11+ (issue https://github.com/baudehlo/node-fs-ext/issues/33).

Tested with `joyent/node#master` and `node-forward/node#master`.

I don't know C++ well, but... it compiles, so it should be good, right? :)