Port of hCraft to D (Mostly)