Fix libdl usage

For instance, it's not needed/does not exist on FreeBSD. ${CMAKE_DL_LIBS} handles this automatically.