disable "list" NG command if glib version is too low

also shuffle around some header definitions