O_NOATIME, O_DIRECT, O_LARGEFILE now #ifndef instead of checking for platform.
TCP_KEEPIDLE only available on Linux, hence #ifdef TCP_KEEPIDLE