fix autoconf errors/warnings

Fixes #161
use atexit() to call libusb_exit()

Fixes #130