#ifdef out the other debugging entry that does not fit like the newer code
does
more const for gcc-4.8
minimal fix for cast from pointer to int of different size.