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

diff --git a/misc/network.c b/misc/network.c
index 591b33b..d2ffb2a 100644
--- a/misc/network.c
+++ b/misc/network.c
@@ -7,6 +7,7 @@
  */
 
 #include <ctype.h>
+#include <string.h>
 #include <sys/types.h>
 #include <pwd.h>
 #include <unistd.h>