Move the -ldl dependency to the moon library.