ts_srv: fix missing includes (caused random build issues)