proxy.c, pipeclient.c: same macOS htons/htonl fix as gui.c
Stop undefining htons/htonl (macOS has them only as macros) and include
<arpa/inet.h>. pipeclient.c is not part of the main build (it needs
ui_lowlevel.h, which no longer exists) so it is changed for consistency
only.