fixed building issues for macx Qt5