Improve libtsm installation

Also attempt to install on darwin