Thread Fix

Fixed the std::thread calls from issuing errors during compile time.