Provide a definition of AI_NUMERICSERV if it is undefined.
Do not break the build with GCC by incompatible flags (which are already added for Clang above, no need to duplicate them for Apple in general). Add flags for Apple with gcc so that the build works.
unique_ptr
.AI_NUMERICSERV
if it is undefined.