The solution is very simple, it merely requires testicular fortitude and an understand of the goal of all Muslims.
Now, you might think this is a extremist or radical suggestion. But really, is it? Islam literally means submission, every single Muslim is commanded by Mohammad in the Quran to wage Jihad until the entire earth is brought under Islamic subjugation. If you are not a Jew or Christian, Muslims are commanded to offer you the choice of converting to Islam, or dying. If you are a Jew or Christian, Muslims are commanded to offer you the choice of converting or submitting to Islam and becoming a second class citizen known as a dhimmi and paying a dhimmi tax known as the jizya.
You say… But what about the moderate Muslims or the peaceful Muslims. I say this to you. In every army, only 10% are in actual combat positions. The rest of the army is logistics and support. There are no moderate or peaceful Muslims, there are Islams combat troops (The extremist terrorists) and the logistics and support personal, which is the entire rest of Islam.
You cannot coexist peacefully with anyone, if that anyone genuinely believes that their obligation to their god is to conquer you and force you to submit to them as their slave. Muslims are proud of saying “We will defeat you, because you love life, and we love death”. It is a fatal mistake to believe that that is hyperbolic rhetoric. Islam has proven over and over for the last 1400 years that it is not braggadocio.
Until Islam has drained the very last dredges from the cup of death and destruction and can no longer stomach its taste, it will continue killing every and anyone who refuses to submit. Only when Muslims have had so much death and destruction forced upon them that they can no longer stand it, will there be peace with Islam.