Create appthread.h