moving ptrutil.c out of KiD tree