Add sys/socket on linux and apple