Rewrite hesservbyname.c

* New implementation; license under 2-clause BSD
* Use sscanf rather than custom string manipulation
* Drop support for aliases in servent from hesiod