[MacPorts] #45447: cmake fails to build complaining about symbols not found during link stage