Adding thread lib to stream so.