The only difference between Christianity and Islam is that in western countries, secular authorities are held in higher regard than religious authorities. On both governmental and popular level, on average.
There are islamic countries where secular governmental power is in theory above the religious/ideological authorities, but if the religious authorities decide to cause problems a large percentage of the people will follow.
This is mainly caused by lousy educational levels which are often highly correlating with religious tendencies and - more importantly - the tendency to blindly follow figures of authority as a group without question, just because everyone else does. That is caused by the fact that the majority of approved schools are Quran schools which apart from being largely a tool of indoctrination, don't as a rule allow female pupils who thus are left without even that meager dose of schooling, which of course leaves them handily dependant of the males in the society.
Of course, the religious authorities in these countries aren't dumb. They know that they will only stay in the upper echelons of power as long as the population remains ignorant and unequal.
It's not religions by large that are "bad" or don't belong to 21st century, it's the people in positions of power that have a tremendous temptation and possibility to misuse their authority for their own gain.
Where religions don't belong is in the legislative, judicial and executive branches of power in any government or comparative organization. If any of these main branches of power are controlled by religious authorities or any other "always right" ideology, then it is very probable that in a very short time, the regime will stop representing what is best for the people. In Adama's immortal words... police and the military both have a duty to protect the people from the enemies of the state, but when the military becomes the police, the people tend to become enemies of the state. Not exact analogy, but you get the picture.
In other words, religions with excessive authority have historically been rather bad for those who happen to disagree.
Note that same can be said about any other regime with a totalitarian form of government. Which quite well showcases the fact that it's not the message of the religion/ideology/[insert noun here] that is bad as a rule, it's the people in charge of said organization and how they manage it.
Of course I personally disagree to any religion or ideology being indoctrinated into young children practically from birth, but each religion and ideology has their fundamentalists. There are christian fundamentalists who are, in ideology, as bad as islamic fundamentalists, it's just that it's not acceptable for them to act on their ideas, whereas in many islamic countries - especially the backwater areas - the religious authorities condone of such activities or points of views, if not outright encourage them.
Which brings us back to the point on how to prevent it. Make developing countries invest on their education beyond those damned Quran schools, and make them educate the females.