add libsm dependency