Use FUSE_IOCTL_COMPAT from the Fuse module.