Fix wsproxy to be compatible with node.js v0.10.x