avoid setting instruction cache size to @count when Capstone uses user-customized memory management, which might fail in resource scarce env such as kernel
diff --git a/cs.c b/cs.c
index 60dee78..8881790 100644
--- a/cs.c
+++ b/cs.c
@@ -436,8 +436,10 @@
 
 	handle->errnum = CS_ERR_OK;
 
+#ifdef CAPSTONE_USE_SYS_DYN_MEM
 	if (count > 0)
 		cache_size = count;
+#endif
 
 	// save the original offset for SKIPDATA
 	buffer_org = buffer;