dlopen gives error if ret == 0