diff --git a/src/core/ActionWithArguments.cpp b/src/core/ActionWithArguments.cpp
index b6f7ee03a263db0ff8aea30c2572f343d94ad1bb..5caaadca5ca361220f5538ad6c799c5a263abc10 100644
--- a/src/core/ActionWithArguments.cpp
+++ b/src/core/ActionWithArguments.cpp
@@ -27,7 +27,7 @@
 #include <iostream>
 #ifdef __PLUMED_HAS_CREGEX
 #include <cstring>
-#include "regex.h"
+#include <regex.h>
 #endif
 
 using namespace std;
diff --git a/src/gridtools/FourierTransform.cpp b/src/gridtools/FourierTransform.cpp
index de836de7a111fa684f809932d7b8be223d9b8643..31b268951e0385d5a5e53b6d7db8125fa63f6198 100644
--- a/src/gridtools/FourierTransform.cpp
+++ b/src/gridtools/FourierTransform.cpp
@@ -24,7 +24,7 @@
 #include "ActionWithInputGrid.h"
 #include "core/ActionRegister.h"
 #ifdef __PLUMED_HAS_FFTW
-#include "fftw3.h" // FFTW interface
+#include <fftw3.h> // FFTW interface
 #endif
 
 namespace PLMD {