Linux support

Thread now supports Linux