Fixed problem on OS/X; SOCK_CLOEXEC raises EPROTONOSUPPORT instead
of EINVAL.