Add very basic stat and debug options for method cache resets
Remove unused dlmalloc
Use strncpy over strcpy
Remove unused strlcat and strlcpy