Fanauto on bflsc is Z9X according to the source code, not 5 as per the draft protocol document.
Pthread cancel state should be set to disable on usb DEVLOCK.
We should be setting cancelstate, not canceltype when disabling it for usb locking.
Difficulty should be unconditionally byteswapped, not swapped to big endian.