diff -urN mathmlps/main.cc mathmlps/main.cc
--- mathmlps/main.cc	2008-04-03 22:43:06.000000000 +0400
+++ mathmlps/main.cc	2008-04-03 23:53:16.000000000 +0400
@@ -20,6 +20,7 @@
 
 #include <cassert>
 #include <fstream>
+#include <cstring>
 
 #include <popt.h>
 
diff -urN mathmlsvg/main.cc mathmlsvg/main.cc
--- mathmlsvg/main.cc	2008-04-03 22:43:05.000000000 +0400
+++ mathmlsvg/main.cc	2008-04-03 23:43:31.000000000 +0400
@@ -20,6 +20,7 @@
 
 #include <cassert>
 #include <fstream>
+#include <cstring>
 
 #include <popt.h>
 
diff -urN mathmlsvg/SMS.cc mathmlsvg/SMS.cc
--- mathmlsvg/SMS.cc	2008-04-03 22:43:05.000000000 +0400
+++ mathmlsvg/SMS.cc	2008-04-03 23:25:12.000000000 +0400
@@ -19,6 +19,7 @@
 #include <config.h>
 
 #include <sstream>
+#include <cstring>
 #include "defs.h"
 #include "AbstractLogger.hh"
 #include "ValueConversion.hh"
diff -urN src/engine/mathml/mathVariantAux.cc
src/engine/mathml/mathVariantAux.cc
--- src/engine/mathml/mathVariantAux.cc	2008-04-03 22:43:05.000000000 +0400
+++ src/engine/mathml/mathVariantAux.cc	2008-04-03 23:10:05.000000000 +0400
@@ -20,6 +20,8 @@
 
 #include <cassert>
 
+#include <cstring>
+
 #include "mathVariantAux.hh"
 
 static MathVariantAttributes vattr[] = {
--- src/common/AbstractLogger.cc.orig	2009-11-23 07:43:27.000000000 -0500
+++ src/common/AbstractLogger.cc	2009-11-23 07:45:44.000000000 -0500
@@ -20,6 +20,10 @@
 
 #include <stdarg.h>
 
+#include <cstring>
+
+#include <stdio.h>
+
 #include "AbstractLogger.hh"
 
 AbstractLogger::AbstractLogger() : logLevel(LOG_WARNING)
--- src/backend/ps/T1_FontDataBase.cc.orig	2009-11-23 07:49:15.000000000 -0500
+++ src/backend/ps/T1_FontDataBase.cc	2009-11-23 07:58:09.000000000 -0500
@@ -23,6 +23,8 @@
 #include <stdlib.h>
 #include <iostream>
 #include <list>
+#include <stdio.h>
+#include <cstring>
 
 #include "String.hh"
 #include "T1_FontDataBase.hh"
