message: add check for __has_include
diff: // linux, also need to check that system headers installed
  #elif defined(__linux__) && !defined(__ANDROID__)
  +#if defined __has_include
  #if __has_include(<sys/ioctl.h>) && __has_include(</usr/include/asm/ioctls.h>) && __has_include(</usr/include/asm/termbits.h>)
  #include <sys/ioctl.h>
  #else
  #define NO_IOCTL_HEADERS
  #endif
  +#else
  +#define NO_IOCTL_HEADERS
  +#endif
  #elif defined(__APPLE__)
  #include <fcntl.h>
  