--- a/exrenvmap/main.cpp
+++ b/exrenvmap/main.cpp
@@ -46,6 +46,8 @@
 #include <exception>
 #include <stdlib.h>
 
+#include <cstring>
+
 using namespace Imf;
 using namespace std;
 
--- a/exrmaketiled/main.cpp
+++ b/exrmaketiled/main.cpp
@@ -47,6 +47,8 @@
 #include <string>
 #include <stdlib.h>
 
+#include <cstring>
+
 using namespace Imf;
 using namespace std;