diff --git a/src/ELF/DynamicEntryArray.cpp b/src/ELF/DynamicEntryArray.cpp
index c6fa7130ed..4e1bec392f 100644
--- a/src/ELF/DynamicEntryArray.cpp
+++ b/src/ELF/DynamicEntryArray.cpp
@@ -18,6 +18,8 @@
 
 #include "logging.hpp"
 
+#include <algorithm>
+
 namespace LIEF {
 namespace ELF {
 
diff --git a/src/ELF/DynamicEntryRunPath.cpp b/src/ELF/DynamicEntryRunPath.cpp
index e0838401bc..c6758fbd21 100644
--- a/src/ELF/DynamicEntryRunPath.cpp
+++ b/src/ELF/DynamicEntryRunPath.cpp
@@ -17,6 +17,7 @@
 #include "LIEF/Visitor.hpp"
 #include "logging.hpp"
 
+#include <algorithm>
 #include <numeric>
 #include <sstream>
 
