minor fixes
make use of g_tcp_socket_new()