Port the Windows parts to D2.