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