Bug fix

Fixes a copy & paste mistake. The sys/ioctl.h header was not being
detected correctly.
Fixes a few compilation warnings