os: unbreak windows build

Windows doesn't have MAXHOSTNAMELEN. Introduced in afbadde.