Better compatibility with dlopen() mode