Update mainwindow.cpp

Conditional for mac osx 10.8 serial port discovery
Merge pull request #1 from krzynio/master

Update mainwindow.cpp, Conditional for mac osx 10.8 serial port discovery.