Fixing issues on the mac

Fixed missing dependencies
Fixed socket.io problem