Do you have specific examples of what codes were violated and how such violations would have caused problems? If you want a building with certain specifications, a company will offer it if you will pay for it. If there were no building codes you could not violate them, so your statement does not even make sense.
Again, the fallacy that without government something terrible will happen. "Without government banning drugs we will all do drugs and become useless! Without government providing healthcare we will all die on the streets! Without government social security, the elderly will never be able to retire! Without building codes and regulations, our buildings will be hazardous and crumble!"
It is all the same old, same old. If these codes are violated, it is more likely they are unnecessary codes. Companies are not going to construct buildings that are inherently unsafe. They will not make a profit by killing their customers.
I didn't work for the Buidlings Department so I don't retain specific examples of code violation litigations or prosecutions. Nor can I supply specific examples of convenience store holdups, house burglaries, arsons, etc., but I can assure you they do happen. And as Ravi has pointed out in a previous message, whenever there is a hurricane or other natural disaster evidence of code violations become readily apparent. Other examples frequently appear during investigations of fires and pre-purchase home inspections. In fact, I was made painfully aware of a code violation in my own home when I had a new air conditioner system installed, which required an inspection of existing electrical wiring.
But if your need to adhere to Libertarian delusions about competitive self-regulation is such that you're able to deny the obvious I won't interfere with that. Be happy.