gsl: put libs in dependency order

Required for building on modern Debian-based distros without
"-Wl,--no-as-needed".

Reported by Dustin Lang on lsst-data and #3136.