bugfix: fix setup of thread id for linux.