Winter Squash and Pesto Gratin