diff --git a/ez-ipupdate.c b/ez-ipupdate.c
index 5d2b377..2521318 100644
--- a/ez-ipupdate.c
+++ b/ez-ipupdate.c
@@ -38,6 +38,9 @@
 #  include <config.h>
 #endif
 
+#include <time.h>
+#include <string.h>
+
 // you man very well need to edit this, don't worry though, email is only sent
 // if bad things happend and it has to exit when in daemon mode.
 #define SEND_EMAIL_CMD "mail"
diff --git a/md5.c b/md5.c
index 978a9e4..95bd85e 100644
--- a/md5.c
+++ b/md5.c
@@ -27,6 +27,7 @@
 #ifdef USE_MD5
 
 #include <stdlib.h>
+#include <string.h>
 #ifdef HAVE_STRING_H
 # include <string.h>
 #else
