cleanup code for 64-bit
prototypes correction
correction for debug version of C++ cmpiler
correction for pointer printing, use portable %p format specifier