Fix tcpmux stuff on Solaris

Signed-off-by: Martin Sustrik <sustrik@250bpm.com>