Port of lib4u to D