Use our own malloc/free/realloc wrappers