Add ../../lib/libdns.a to some places to fix linking errors