TS-1721: tstop build integration

Detect tstop dependencies and automatically build and install it
if they can be satisfied.
TS-1844: fix unused result warning