Instead of relying on system #ifdefs which may or may not be correct, detect the POSIX ioctl signature at configure time.