Crystal structure of ancestral apicomplexan lactate dehydrogenase with malate.