Many bug fixes to the libsmbclient.c code plus