Fix undefined variable in tests.
Fix tests for cygwin.

Cygwin's libusb seems to be built without file descriptor support, but
python is built will select.poll available.
Fix tests for Windows.
Trigger FreeBSD ABI quirk on Debian/kFreeBSD too.