William calls for unity against extremism