Search $LDFLAGS directories before the system default directories, in the case of overrides
Add in a script to filter out duplicate libraries; only take the first found one
Merge pull request #3186 from staticfloat/master

Search $LDFLAGS for SuiteSparse before system libraries