[Issue 7326] [PATCH] use AI_ADDRCONFIG if defined in the environment