compile on libtsm