Fix a few warnings
Use the new gobject-introspection annotations

And fix warnings given by the newer version.