why dont you include the header of the seriel port on the thread c++ file