Fix add target libs.