Wildfires in Canada and Alaska drive thousands from homes