Infrastructure is one major factor.
However, cultural volition as well as comprehensive cohesion are 2 other essential components to help bridge that gap.
That is where government is supposed to step in to facilitate such an outcome. Careful and extensively established planning in any bureacracy is key to any country's success.
Saudi Arabia has immense wealth and access to the latest military technology, but lags because it is essentially a Feudal society that has a rampant issue with caste and tribal tensions that could lead to a full blown civil war which in turn could threaten Somalia's very existence (and affect the African Continent as a whole). Somalia on the other hand is in a different boat (Africa included), but should be keen as to not get swept away in any other nation's/region's shipwrecks either.
The coordination and cohesion within the Somali and wider African international diaspora will be quintessential to Somalia's future, as they would be bringing in not only capital, but useful skills that can be taught as well as unwavering support in the form of any active service to Somalis at large.
Somalia AND AFRICA definitely have ALL the tools they need at their disposal. Now lets see if they will piece themselves together SECURELY.