fixed the compile errors for ipdbase.c