Fixed a bug in IOCTL handling - Linux kernel 2.6.x modified the prototype for _ioctl calls. I hate everything.