AMC racing legend loses battle with cancer