Got all changes needed to get it to compile under chicken 5.  Has some issues with the pathname resolutions, but should be very close