--- /dev/null
+--- a/gatedevice.c
++++ b/gatedevice.c
+@@ -1,5 +1,6 @@
+ #include <syslog.h>
+ #include <stdlib.h>
++#include <stdio.h>
+ #include <upnp/ixml.h>
+ #include <string.h>
+ #include <time.h>
+--- a/main.c
++++ b/main.c
+@@ -10,6 +10,7 @@
+ #include <time.h>
+ #include <net/if.h>
+ #include <upnp/upnp.h>
++#include <string.h>
+ #include "globals.h"
+ #include "config.h"
+ #include "gatedevice.h"
+--- a/pmlist.c
++++ b/pmlist.c
+@@ -2,6 +2,8 @@
+ #include <sys/wait.h>
+ #include <unistd.h>
+ #include <upnp/upnp.h>
++#include <stdio.h>
++#include <string.h>
+ #include "globals.h"
+ #include "config.h"
+ #include "pmlist.h"