remove unnecessary files from dependent libs