Fix ioctl types for non-x86 musl This fixes up #289 by changing the type for other platforms as well.