Support Node v0.11.4

Node v0.11.4 contains a lot of backwards incompatible changes that need to be worked around.