fix bugs which cause build-error.
add public property 'debug' to SerialPort class for printf-debugging.
ready for mac
Merge pull request #1 from oasynnoum/master

Ready for Mac