tstools: fix compiler warnings