Thousands order to leave as Canadian firefighters battle wildfires