diff --git a/MaterialLib/MPL/CreateComponent.h b/MaterialLib/MPL/CreateComponent.h
index 2331f61ca5678b541e0790de68e840a6522a3219..f4ab34ee030a782d48fdcbf880f73b63a47666bf 100644
--- a/MaterialLib/MPL/CreateComponent.h
+++ b/MaterialLib/MPL/CreateComponent.h
@@ -10,6 +10,8 @@
  *              http://www.opengeosys.org/project/license
  */
 
+#pragma once
+
 #include <boost/optional.hpp>
 #include <map>
 #include <memory>
diff --git a/MaterialLib/MPL/CreateMedium.cpp b/MaterialLib/MPL/CreateMedium.cpp
index d19fc7be76ee38206696d0e3b03d69bee4b4c5b8..a67ed5df4f173641c543f8f11b0a756e15719750 100644
--- a/MaterialLib/MPL/CreateMedium.cpp
+++ b/MaterialLib/MPL/CreateMedium.cpp
@@ -10,6 +10,8 @@
  *              http://www.opengeosys.org/project/license
  */
 
+#include "CreateMedium.h"
+
 #include "Medium.h"
 
 #include "BaseLib/ConfigTree.h"
diff --git a/MaterialLib/MPL/CreateMedium.h b/MaterialLib/MPL/CreateMedium.h
index eddf71b67a5a3a21bc413578480da15d9283fbb7..60d3b4fb50e8359b9b5a4e49eefae93c48190c5c 100644
--- a/MaterialLib/MPL/CreateMedium.h
+++ b/MaterialLib/MPL/CreateMedium.h
@@ -10,6 +10,8 @@
  *              http://www.opengeosys.org/project/license
  */
 
+#pragma once
+
 #include <map>
 #include <memory>
 #include <string>
diff --git a/MaterialLib/MPL/CreatePhase.h b/MaterialLib/MPL/CreatePhase.h
index 83acf94527c750f69597d841b690ecfa18a4af8c..71bbad764d84ab58718be6018ac03552375e854f 100644
--- a/MaterialLib/MPL/CreatePhase.h
+++ b/MaterialLib/MPL/CreatePhase.h
@@ -10,6 +10,8 @@
  *              http://www.opengeosys.org/project/license
  */
 
+#pragma once
+
 #include <boost/optional.hpp>
 #include <map>
 #include <memory>