Ported to gsl 1.15.3