Fix build with external BLAS/LAPACK.