add necessary include
move gt_jobs to thread class

allows to compile with threads=yes
fix uninitialized error on clang