SERVER-9890 Force the use of gnulink on solaris, since we always link through the compiler
(cherry picked from commit 58f82cf66d180a595c9e6801667c569c6d0eed98)