configure: use AC_SEARCH_LIBS to find dlopen