We should check if dlopen() require -ldl for successful linkage.

The AC_SEARCH_LIBS(dlopen, dl) in configure.ac does the thing.