autoconf'd <fcntl.h> and <sys/ioctl.h> handling