[PATCH v4 4/7] list.h: Replace kernel.h with the necessary inclusions