Search and replace party

Fix compilation without fpermissive