Fixing menubar issues in Mac OS 10.8
Fixing Mac serial issue when write returns EAGAIN
Fixing Mac serial issue when ReadFile returns EAGAIN