Added thread type on linux.
Fix build maybe
Cleaned up test.
...and another thing!