tsfile: fix broken build caused by BSD updates