Are you saying it isn't possible to have Muslims living peacefully in countries with free speech ?
This is where it gets confusing between Muslims & Islam.
Some (a lot of) what the terrorists do is found in the literal interpretations of Islam itself.
Thankfully MOST muslims don't follow this literal interpretation to the letter, which is why muslims en-masse here have not gone on the rampage to kill cartoonists or unbelievers or anyone else the scripture objects to.
There is huge debate raging about what defines a muslim. Can you be a muslim if you don't follow all aspects of Islam ? ISIS don't think so and hence pronounce them as heretics and that's why they've killed so many muslims in Iraq and Syria and Boko, the same in Nigeria.
The 'moderate' muslims have their own interpretation, but this seems to be largely based on ignoring, over looking and revising things without any theological basis.
So the answer is yes you can and do have muslims living peacefully in Western countries, but (a) are they actually muslim in the true sense or just culturally so and (b) what to do about the increasing number of other literalist muslims who don't hesitate to use force.
As demographics change and muslim populations in Europe grow, as they surely will with increasing numbers of refugees fleeing the Middle East, there is the possibility that Western laws could be changed democratically. A coalition of mainstream muslim groups in France tried to get Charlie Hebdo cartoons changed through the courts but were unsuccessful. Should the Sharia Party ever arise and get into power, then the violence may stop as the laws will have been amended to prevent it in the first place.
The Political Islam movement has made no secret of the fact that their ultimate aim is to make things more Sharia compliant via the ballot box in both Islamic and Western countries.