Hecke operators, buildings and Hall algebras