Correct fix for libdl via CMAKE_DL_LIBS.