Fix reorgnize lib dependency problem.