remove unnecessary dylibs