Fixes for broken ioctl calls.

Many of the `ioctl` calls were not called correctly.  The success return variable was checked, rather than the actual status variable (which is set by ref/ptr).

Tested on OSX + Linux.

(integrated here: https://github.com/bakercp/ofxSerial)