trying to fix shrealloc - shrealloc is like shmalloc when ptr is NULL...despite of these, I get segfaults in shrealloc.c and ipgm.c...more commits shall follow