Adapt for use of ABI versions in generated code

https://bugzilla.gnome.org/show_bug.cgi?id=710992