Fixed segmentation fault in ykcore_libusb.c