build, use the more portable _POSIX_HOST_NAME_MAX
build, struct sockaddr needs sys/socket.h
Merge remote-tracking branch 'rudi/fixes'

* rudi/fixes:
  build, struct sockaddr needs sys/socket.h
  build, use the more portable _POSIX_HOST_NAME_MAX