More porting to D.
Removed zlib code.
More porting to D.