diff --git a/dune/tectonic/globalnonlinearity.hh b/dune/tectonic/globalnonlinearity.hh
index 4ae49881f23487a2144502276c22deb497ac6e98..631c6913dd353f19680a7f455b5207638f999376 100644
--- a/dune/tectonic/globalnonlinearity.hh
+++ b/dune/tectonic/globalnonlinearity.hh
@@ -5,6 +5,7 @@
 #include <dune/common/shared_ptr.hh>
 #include <dune/istl/bvector.hh>
 #include <dune/istl/bcrsmatrix.hh>
+#include <dune/istl/matrixindexset.hh>
 
 #include "nicefunction.hh"
 #include "localnonlinearity.hh"
diff --git a/dune/tectonic/myblockproblem.hh b/dune/tectonic/myblockproblem.hh
index 2acb4922c2ec40f93d174e1664b77446a8a45f2b..48be6f835ad9b17f4019bfeef3521f9fed65d469 100644
--- a/dune/tectonic/myblockproblem.hh
+++ b/dune/tectonic/myblockproblem.hh
@@ -6,9 +6,11 @@
 #include <dune/common/bitsetvector.hh>
 #include <dune/common/parametertree.hh>
 
+#include <dune/solvers/common/staticmatrixtools.hh>
 #include <dune/tnnmg/problem-classes/bisection.hh>
 #include <dune/tnnmg/problem-classes/onedconvexfunction.hh>
 
+#include "globalnonlinearity.hh"
 #include "localnonlinearity.hh"
 #include "mydirectionalconvexfunction.hh"
 #include "samplefunctional.hh"
diff --git a/dune/tectonic/nicefunction.hh b/dune/tectonic/nicefunction.hh
index bf000fc85285ae86e734d7d252d0cd469e74c577..2faf43df819e2147a9b7ede1e2bc74221d589640 100644
--- a/dune/tectonic/nicefunction.hh
+++ b/dune/tectonic/nicefunction.hh
@@ -3,6 +3,7 @@
 
 #include <algorithm>
 #include <cmath>
+#include <limits>
 
 #include <dune/common/exceptions.hh>
 #include <dune/common/function.hh>