util, list: Clear up list.h a bit

To allow C++ source files to use it as well.
no-glib: wip, adapt icu