build fix, include sys/socket.h (fix OpenBSD)
build fix, handle missing ENODATA (OpenBSD)
Merge branch 'bsd_fixes'

* bsd_fixes:
  build fix, handle missing ENODATA (OpenBSD)
  build fix, include sys/socket.h (fix OpenBSD)