pub fn load_with<F>(loadfn: F)where
    F: FnMut(&str) -> *const c_void,