Modify GMSH to be build as shared library