cad/gmsh: support of OpenCascade 7.8.0
Backport of the patch e97e555 from upstream.
PR: 277314 Approved by: wen (maintainer)