fix qt5.0 compatatibility issue With Max OS