canadian shares gain as gold miners rally