diff --git a/MathLib/LinAlg/MatrixVectorTraits.cpp b/MathLib/LinAlg/MatrixVectorTraits.cpp
index bee6c4e4cb02f3e1ed04dc4afaac44c2b33721ca..2cf45d73cf090f5337e0d1efe21cfd5e36758054 100644
--- a/MathLib/LinAlg/MatrixVectorTraits.cpp
+++ b/MathLib/LinAlg/MatrixVectorTraits.cpp
@@ -9,6 +9,7 @@
  */
 
 #include "MatrixVectorTraits.h"
+#include <cassert>
 
 #include "MatrixSpecifications.h"
 
diff --git a/ProcessLib/BoundaryConditionAndSourceTerm/DirichletBoundaryCondition.h b/ProcessLib/BoundaryConditionAndSourceTerm/DirichletBoundaryCondition.h
index 9c9d99122e130a26b9477fd4959e0b380e22130d..bf84bca15e5fcab56e427a2a3a78949c6564d47a 100644
--- a/ProcessLib/BoundaryConditionAndSourceTerm/DirichletBoundaryCondition.h
+++ b/ProcessLib/BoundaryConditionAndSourceTerm/DirichletBoundaryCondition.h
@@ -11,6 +11,7 @@
 #pragma once
 
 #include "BoundaryCondition.h"
+#include <memory>
 
 namespace BaseLib
 {