Backport enough dcraw code to get WB for NX3000

Should fix bug #10146