Thankyou, I didn't have an IsHistoryUpdater function in instance but I copied and pasted from the Image calibration module and it did the trick.
I've now got it compiled in Windows 32 and 64 bit, it will now debayer any supported sample type, just the other patterns to add.
Cheers
Paul