Dosage Compensation via Transposable Element Mediated Rewiring of a Regulatory Network