Dozens of dead bodies have been pulled from the illegal South African gold mine that police laid siege to five months ago.