Detach interfaces before trying to change the config, as libusb doesn't handle that automatically.
Fixes issue #5