fixed socket.c compilation