Hello Carl-Daniel,
I have fixed and forward ported the code, please check that it works and looks sane.
Thanks for your time. Current (your second) iteration works flawlessly here.
libusb header file location is still something I have to fix in another iteration.
I guess `#include <libusb.h>` would be right. But we'd have to ask pkg-config for the includedir, then.
I'm not quite sure if I changed anything since my post, so I'll rebase, test, and repost my pending changes.
Regards, Nico