fix includes for the trim function in tsmain.cpp