fix inclusion of gch files
improved thread logging