Changes to compile on Mac OS X

I don't yet have the hardware to test, but it compiles:

Tested on OS X 10.9.2 with libftdi1 installed via macports
Also tested on Ubuntu 14.04 LTS as to not break Linux support