Compiler Design for Distributed Quantum Computing