5/16 wrenching header bolts

Have you tried angle wrenches? I have a set of Snap-on angle wrenches and with them I can torque them all down fine. There are other less expensive sets also like Mac and Matco.