fixed a crash if typedef type was omitted
added sys/ioctl.h empty header