fix includes in tsmain.cpp and threadsock.cpp