delete unneccesary libraries from LDLIBS