lw_addr: only use AI_V4MAPPED and AI_ADDRCONFIG where available