On the topological structure of compact 5-manifolds