enable thread, link issue occurs