From Standalone LLMs to Integrated Intelligence: A Survey of Compound Al Systems