Avoid a re-definition issue and fix compilation in MinGW, where gai_strerror is declared but not defined.