Add mask for ioctl to stop gcc from stripping arguments