printf statements using %X ->%x; More fixes for C++ and tinyio swithc