Fix my boneheaded cast in the DEBUG code and just hide the format warnings with a pragma. Who knows if this will work with non GNU compilers? Also OTB and whitespace stuff