Remove socket.h depentency in tuple.h