node v0.11+ compatibility
patch for node 0.11, nan 1.2