fork cnid2path.c into 32 and 64 bit versions