fixed threads on linux