Avoid errors on SOCK_CLOEXEC undefined in kernel < 2.7