Last but not least, I highly recommend against “nation building” or any other military involvement of Western powers in the middle east. I have objected to the wars in Iraq and Afghanistan from the very start, knowing that no one can reform Islamic societies other than Muslims themselves, and that this may take centuries to unfold. Instead I recommend containment. In other words, closing the borders, reducing all interactions with Islamic countries to the bare minimum, and investing resources in finding alternatives to middle eastern oil.
This is an extensive, and detailed summary of the problem of Jihadi's infiltrating Europe (and America). I recommend reading.