Mac OS X Qt Build support

Changes for Mac OS X build of MasterCore-Qt.app

This is a work-in-progress and needs additional development and testing before being merged.