Fix building with older kernels which don't have the EVIOCGMTSLOTS ioctl yet.