netmix: make tcp_server and tcp_client use local arguments

The common argument parsing is deprecated, so change the tcp client and
server to use local argument parsing.
netmix: use explicit signed for getopt_long_only return variable

ARM architectures default to unsigned char type, which breaks the check
for -1 from getopt_long_only(). To support ARM, we now use signed char.