Fix broken syscalls

The syscall interfaces seem to have changed since whenever this package
was written.
Fix error message

The syscall causing the error here is FCNTL, not IOCTL.