only include thread header if we are in the MULTI_THREAD environment