Added MAC OSX support for USB scanning and built it on osx