Fixes for socket using 'byte_t' type.