Rename list_* function and file to flist_ to avoid conflict with FreeBSD