change to _GNU_SOURCE in resolver

- for recursive mutex initializer
- for handier strerror_r