Fix linking of smbget when there is no shared library support.