Two-loop master integrals for the planar QCD massive corrections to di-photon and di-jet hadro-production