Fix another place where the libdl linker flag may need to come earlier in
the list.