--- a/src/celengine/image.cpp	2014-04-26 14:41:56.359993709 +0200
+++ b/src/celengine/image.cpp	2014-04-26 14:42:16.886993341 +0200
@@ -42,6 +42,7 @@
 #include "jpeglib.h"
 #else
 #include <cstdio>
+#include <string.h>
 #include <jpeglib.h>
 #endif
 }

--- a/src/celengine/texture.cpp	2014-04-26 15:54:19.937915924 +0200
+++ b/src/celengine/texture.cpp	2014-04-26 15:54:46.992915439 +0200
@@ -28,6 +28,7 @@
 #include <cstdlib>
 #include <cstdio>
 #include <cassert>
+#include <string.h>
 
 #ifndef _WIN32
 #ifndef TARGET_OS_MAC
