Fixed compilation error for node >= v0.11, ported to NAN
Merge pull request #1 from mirrr/nan_migration

Fixed compilation error for node >= v0.11, ported to NAN