adapted to gonum/blas changes