Support Node 0.11.4

This is a backwards-compatible patch for Node 0.11.4+. It addresses #180 #151 #177. Travis is still stuck at 11.0.3, so it does not compile there.