Fix a few missing includes that prevented building on BSD systems.
* Client: the proper way to get MAXHOSTNAMELEN is from <sys/param.h>,
not from <rpc/types.h>.
* Positioner/Direction: std::hash is declared in <functional>.
* Positioner/OutputNetworkSocket: get struct sockaddr from
<sys/socket.h>, not from <netinet/in.h>.