Palace climb away from trouble with win at Burnley