Node 0.11.x compatibility fixes