added gtthread.h/c