Fix MainToolBar visibility not saving in OSX

The current code, although completely valid, doesn't work due to moc not
seeing built in defines. See;
https://bugreports.qt-project.org/browse/QTBUG-34593
Merge pull request #87 from denizt/moc

Fix MainToolBar visibility not saving in OSX