Implement GetThreadCount on Linux (again)
Speed up tests