ts-tools: fix compiler warnings

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>