Partial D port of JUnzip