patch for node 0.11, nan 1.2