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