Fix 'filewrite' code for G1X, G12, IXUS310, SX30 & SX40
Add makefile dependancy rule for filewrite.o
Update to DNG code to remove hard wired array indexes for updating tags, makes it easier to add new tags without breaking things.
Added helper functions to iterate across the IFD list and directory entries, while building the DNG header.