prototype dlopen/dlsym for static linking