Add the -ldl library option.