diff --git a/src/macro/Directives.cc b/src/macro/Directives.cc
index 4f441cde19d36568cb4d00302c6238681129a439..c576249e1f03c145857119d2d7fd50e157d4d981 100644
--- a/src/macro/Directives.cc
+++ b/src/macro/Directives.cc
@@ -21,6 +21,7 @@
 #include "Driver.hh"
 
 #include <fstream>
+#include <utility>
 
 using namespace macro;
 
diff --git a/src/macro/Driver.cc b/src/macro/Driver.cc
index f4a7351cfe4a81f1555081e61de0f5a8a8dea797..85743f042d82b1ae88df521a5c34f3bdaacf8ab0 100644
--- a/src/macro/Driver.cc
+++ b/src/macro/Driver.cc
@@ -18,7 +18,9 @@
  */
 
 #include "Driver.hh"
+
 #include <regex>
+#include <utility>
 
 using namespace macro;
 
diff --git a/src/macro/Expressions.cc b/src/macro/Expressions.cc
index 7c6e6310df9942681fe10130ce43cc341bf90cf3..9d34f81723850e6679359520f1bf8ed6738cd0bc 100644
--- a/src/macro/Expressions.cc
+++ b/src/macro/Expressions.cc
@@ -17,6 +17,8 @@
  * along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
  */
 
+#include <utility>
+
 #include "Expressions.hh"
 
 using namespace macro;