we assumed GType fitted in an int

which isn't true on freebsd, and perhaps others