use NAN for Node 0.8->0.11+ compatibility

Works up to current node master, won't work with 0.11.0->0.11.4, those were an anomaly.