I agree, we'd better use dynamic linking or give up on reusing samba code and revive some code from the first implementation without libsmbclient dependecy + static linking to krb5 libs. so we could end up with deps /lib located libraries only.