convert to NAN for 0.8->0.11+ compatibility
Merge pull request #270 from rvagg/nan

use NAN for Node 0.8->0.11+ compatibility