build: handle libsmbsharemodes by SMB_LIBRARY() and correctly create SONAME file.