diff --git a/Geo/GFace.cpp b/Geo/GFace.cpp
index 0f761f4addbe9153686a931ac8615aedda2db33e..c3592f297c0dc4455853ca9e92962cedf2772ab7 100644
--- a/Geo/GFace.cpp
+++ b/Geo/GFace.cpp
@@ -9,6 +9,7 @@
 #include "GModel.h"
 #include "GFace.h"
 #include "GEdge.h"
+#include "GEdgeCompound.h"
 #include "MTriangle.h"
 #include "MQuadrangle.h"
 #include "MElementCut.h"
diff --git a/Geo/GModelVertexArrays.cpp b/Geo/GModelVertexArrays.cpp
index e4bc930ee45492e22641436984a2b77147860b65..b0c7fb5d40a59a5062913cbfd06ab4fdd61d233a 100644
--- a/Geo/GModelVertexArrays.cpp
+++ b/Geo/GModelVertexArrays.cpp
@@ -7,6 +7,7 @@
 #include "GmshMessage.h"
 #include "GmshDefines.h"
 #include "GModel.h"
+#include "GEdgeCompound.h"
 #include "MLine.h"
 #include "MTriangle.h"
 #include "MQuadrangle.h"
@@ -254,7 +255,8 @@ class initMeshGEdge {
     if(!e->getVisibility()) {
       if(e->getCompound()) {
         if(!e->getCompound()->getVisibility()) return;
-      } else
+      } 
+      else
         return;
     }