native-fetcher: fix to work with nginx 1.5.8+

nginx 1.5.8 changed the resolver api, which the native fetcher uses.

Fixes #578.

Squash-merge of @dinic's #581.