I can't get it to work unless I revert 26cb7170df5ee119ba3ea1142264035cac0c5db4 . Once I revert that commit I have no problem using the library. I have tested it on using libusb-1.0.19 in Debian Wheezy, and also with libusb-1.0.20.