Some more steps to portability.
Fix LDNS linkage.
LDNS support is now functional.