Elvis songwriter Mac Davis dies at 78