use new ioctl code for Linux, fix ctest