libhackrf fix and cleanup