Take out thread.h