extconf: sort out flags and find blas