Sparse matrices with non-equal blocks, build-system improvements