small changes for writing NC4 output rasters.