Fixed swig and usrp apps to work with libusb-0.12 and libusb-1.0 plus minor cleanup