Australian firefighters have joined the Canadian military in working to control wildfires during a record-breaking summer.