Adding pthread dependency