fixed incompatiblities in nginx 1.5.8 which breaks the resolver API in the nginx core.