Minor fixes.
add list_needs_update, use it in mesa >=jessie.