Fixed linux thread support.