Merge pull request #1 from pjb304/master

Updates to enable OSX compatibility
small fixups

set the libgphoto2 libname using sys.platform

formatting fixes to the serial port sniffer, remove a helper function
fixup
Merge pull request #2 from pjb304/master

More fixes from latest dome builds