Remove linux-specifics from threading