QT Mac version built. Added ifdefs to support qt4 and qt5