Drop frameworks dependency & declare/define functions before use.

Change-Id: Ic9f1870bfbb1b719d0c78c45813b05cc882f00cf
diff --git a/utils.c b/utils.c
index 5c7863e..787aa93 100644
--- a/utils.c
+++ b/utils.c
@@ -31,6 +31,8 @@
 #include <dlfcn.h>
 #include <fcntl.h>
 #include <errno.h>
+#include <stdlib.h>
+#include <string.h>
 
 #include "utils.h"
 #include "list.h"