Adaptation and foraging from the Terminal Pleistocene to the Early Holocene