workarounds for gobject-introspection, see #47 and #48