[PATCH] build: Add -ldl to LIBS as needed.