git-compat-util.h: Provide missing netdb.h definitions