Remove thread.h