I started by yanking out the old fasteners visible here. They prevented the boards from fitting back together.
With a couple brackets, it was (almost) as good as new. Ideally I would have put L-brackets inside the frame, but it would have been a lot more of a hassle. With these brackets, I was easily able to hold it flat while attaching them.