Fix up bug occuring when Gmsh fails in -FM.

The case where Gmsh fails to mesh was not captured properly, which in
the end gave a memory error (Segmentation fault).

Also fixed up a compilation warning (Centos).