Referencing the 3rd picture, cut off the stock header at a sharper angle to better interface with where the pipes header is, and then cut a piece from scrap to bridge the gap. Take your time fine tuning the fit of the pieces with files. A little goes a long way when it comes to filing for a snug fit.
Make sure you have a good solution for the rear mount before you commit though.