convert to NAN for Node 0.8->0.11+ support
Merge pull request #477 from rvagg/nan

use NAN for Node 0.8->0.11+ compatibility