mthread attempt linux fix