modify soname only on dynamic libraries 

prevents the program from adding new DT_SONAME entries on executables