Add compatibility with socket.io 1.0.0-pre