diff -aur a/mplex/inputstrm.cpp b/mplex/inputstrm.cpp
--- a/mplex/inputstrm.cpp	2004-03-08 23:10:53.000000000 +0100
+++ b/mplex/inputstrm.cpp	2008-07-07 23:28:19.000000000 +0200
@@ -23,6 +23,7 @@
 
 #include "config.h"
 #include <assert.h>
+#include <climits>
 
 #include "mjpeg_types.h"
 #include "fastintfns.h"
diff -aur a/mplex/multiplexor.cpp b/mplex/multiplexor.cpp
--- a/mplex/multiplexor.cpp	2004-03-08 23:10:53.000000000 +0100
+++ b/mplex/multiplexor.cpp	2008-07-07 23:28:19.000000000 +0200
@@ -22,6 +22,7 @@
 #include "config.h"
 #include <math.h>
 #include <stdlib.h>
+#include <cstring>
 
 #include "mjpeg_types.h"
 #include "mjpeg_logging.h"
diff -aur a/mplex/padstrm.cpp b/mplex/padstrm.cpp
--- a/mplex/padstrm.cpp	2004-03-08 23:10:53.000000000 +0100
+++ b/mplex/padstrm.cpp	2008-07-07 23:28:19.000000000 +0200
@@ -25,6 +25,7 @@
 #endif
 
 #include "padstrm.hpp"
+#include <cstring>
 
 
 
diff -aur a/mplex/zalphastrm_in.cpp b/mplex/zalphastrm_in.cpp
--- a/mplex/zalphastrm_in.cpp	2004-03-08 23:10:53.000000000 +0100
+++ b/mplex/zalphastrm_in.cpp	2008-07-07 23:28:19.000000000 +0200
@@ -23,6 +23,7 @@
 #include "config.h"
 #include <math.h>
 #include <stdlib.h>
+#include <cstring>
 
 #include "zalphastrm.hpp"
 #include "interact.hpp"