s3: link thread objects in libsmbclient only and adjust linker flags