The American Army Corps of Engineers managed to control the spread of disease among contract labourers , of whom almost 20,000 came from Barbados ; they built a railway , imported giant steam shovels and moved mountains to complete an engineering wonder of the world .