Add dlopen() function check and add dl to @LIBS@.