openbsd ioctl fixes