Add version attributes for better validation

Based on:

https://git.gnome.org/browse/gnome-user-docs/commit/?id=a486377d0c610d4f6d2a6fd34a47655fbeba1ad1