Magnetic Coupling and Superconductivity in Topological Crystalline Insulator Heterostructures