Fix some very longstanding bugs in shared connection client startup. These haven't manifested historically because I've never used moussh on a machine with 12-byte ints. The changes made to get remote protocol strings to the client ended up exposing the bugs upon connecting to a machine whose name length equals sizeof(int).