s4-waf: add getaddrinfo.c replacement if needed