include sys/socket.h only on unix platform