fix windows build failure by defining _SYS_NMLN
Merge pull request #1019 from McAtte/hpux-fix-hostname-3.5.x

 fix windows build failure by defining _SYS_NMLN