A more flexible LAPACK/BLAS setup