update require and fix build for socket.io-1.2.0