Remove unnecessary imports of socket.h