Add support to embed Capstone 3.x branch into OS X kernel extensions.
diff --git a/utils.c b/utils.c
index ee3292d..d2f5fdc 100644
--- a/utils.c
+++ b/utils.c
@@ -1,7 +1,11 @@
 /* Capstone Disassembly Engine */
 /* By Nguyen Anh Quynh <aquynh@gmail.com>, 2013-2015 */
 
+#if defined(CAPSTONE_HAS_OSXKERNEL)
+#include <libkern/libkern.h>
+#else
 #include <stdlib.h>
+#endif
 #include <string.h>
 
 #include "utils.h"