[MacPorts] #49109: port modifications required by making qt4-mac co-installable with Qt5