If anything, non-wealthy people in a place like Brazil (roughly 95% of the population) probably resent any attempt at building code enforcement by their government as merely another pretense to receive bribes. As much as we complain about politics in the US, rest assured that politicians and thus governments in the less human-capital dependent parts of the world are orders of magnitude worst.
You can't make buildings safer by decree. It takes resources. Haiti is the poorest country in this hemisphere, by far. (The next poorest countries, Guyana or Nicaragua, are each twice as productive by per capita GDP.)
Even with an accurate idea of the chances (but not certainty) of such a major earthquake, the people and government could quite rationally have decided other more pressing needs deserved all of their meager expenditures.
http://www.guardian.co.uk/world/2008/jul/29/food.internation...
A mud hut may fall down in an earthquake or blow away in a hurricane but is less likely to kill you when it falls over then a brick or concrete building.
Isn't this more about living within the societal means than simply about poverty: If where I live all cars crash or blow up because we lack resources to produce quality cars then one must accept a bicycle or horse and cart for family transport or suffer the consequences, no?
Building codes do not enter in to the equation.
Civil Order, Access to Water, Food, Jobs, lack of corruption are probably much, much higher on their minds than "Are proper seismic standards being enforced."
I don't suspect the Haitians will be hating their government because earthquake resistance wasn't built into their building code.