void cvSetMemoryManager(CvAllocFunc alloc_func, CvFreeFunc free_func, void* userdata) {
    void *fptr;

    fptr = dlsym(_Chcv_handle, "cvSetMemoryManager_chdl");
    if(fptr == NULL) {
        fprintf(_stderr, "Error: %s(): dlsym(): %s\n", __func__,  dlerror());
        return;
    }
    dlrunfun(fptr, NULL, cvSetMemoryManager, alloc_func, free_func, userdata);
}
