As it was said in an other answer it seems like a good idea to send students abroad to study at strong places and have them come back, or if they don't, keep contact, have them give courses in their home country etc.
A scientifically excellent place helping with precisely such a policy is the ICTP in Trieste, see the "Education and Training" and the "Research "sections of their website (they are called institute of theoretical physics, but they have a strong mathematics section). Concretely they provide training programmes for undergrads to prepare them for a PhD - see here - and they also offer short and longer term stays for working scientists from developing countries, as well as institution partnerships, see here.

