common: Fix a build error when using adns.