Minimal requirements for the cultural evolution of language