--- viewer/svutil.cpp.orig	2009-09-15 18:43:12.000000000 -0300
+++ viewer/svutil.cpp	2009-09-15 18:43:37.000000000 -0300
@@ -43,6 +43,7 @@
 #endif
 
 #include <iostream>
+#include <cstdio>
 
 const int kBufferSize = 65536;
 const int kMaxMsgSize = 4096;
--- ccutil/errcode.cpp~	2008-12-30 15:08:19.000000000 -0200
+++ ccutil/errcode.cpp	2009-09-15 18:56:29.000000000 -0300
@@ -75,7 +75,7 @@
                                  //no specific
     msgptr += sprintf (msgptr, "\n");
 
-  fprintf(stderr, msg);
+  fprintf(stderr, "%s", msg);
   /*if ((strstr (message, "File") != NULL) ||
     (strstr (message, "file") != NULL))
   else if ((strstr (message, "List") != NULL) ||
