fix M2-shipped libs lookup issue and add blas usage