- fixed missing stdlib.h and string.h includes everywhere
- removed a couple of unneeded stdlib.h and stdio.h includes

diff --git a/misc/port.c b/misc/port.c
index 668bf1a..7f99f64 100644
--- a/misc/port.c
+++ b/misc/port.c
@@ -6,6 +6,7 @@
 
 #include "config.h"
 #include <stdio.h>
+#include <string.h>
 #include <sys/types.h>
 #include <sys/time.h>
 #include <sys/stat.h>