cec: moved the previously added OS-X ifdef to posix/os-socket.h