Add <extends> from the draft AppStream 0.7 specification
trivial: Use more _cleanup_ functions