Support Node 0.11.4

This is a backwards-compatible patch for Node 0.11.4+.