Changed makefile to work correctly. lib/pdftw.h: added old sources fix ir/cdialect.h: Added RS6K and RT fix from old wais sources. ir/ir.c & ir/irretrvl.c: added macro to fix (I think) S_ISDIR problem. irretrvl.c : sigh. Rather dumb hack added to make temporary names work. Hope it does. source.c : added #include source.c (why wasn't this here already???) whoops, that isn't the problem. The problem was getenv, which was not prototyped. ...and also strchr; I included document.c : added typing CRetDocument (line 485) screen-ui.c : added #include string.h to deal with strrchr()