add a copy of the kernels linked-list routines.
Convert filelist over to use the list.h primitives instead of our own.