Security measures take root in Quebec town as G7 nears