Override the functions that Yara uses for memory management.

Use can use yr_set_mem_functions() to override malloc,calloc,realloc,free,strdup and strndup function.
If you want to use the wrapper, you need to define function following exact memory prototype, and define all of them.

The function yr_set_mem_functions() will return:

 - ERROR_SUCCESS if handler set without error
 - ERROR_WRONG_ARGUMENTS if an handler is missing

Note: this is not supported on Windows platform, and cannot be used with DMALLOC