Casting the `HANDLE` (which is a `void*`) to `int` is potentially dangerous on 64 bit systems, as there the `void*` is 8 bytes long. I think we should either use `intptr_t` for the file descriptor in the scsi functions or do it more abstract and only pass around a `void*` on all platforms.