Vala.CodeContext.set_target_glib_version mixes up major and minor version numbers
Vala.CodeContext.set_target_glib_version
accepts one string parameter of the form MAJOR.MINOR. However, it is incorrectly setting the parsed MAJOR value into target_glib_minor and MINOR into target_glib_major.
This means for those of us passing older version numbers via --target-glib, the code thinks we have a much later glib version (as the minor number is now in the major), and as a result, it switches in some glib APIs that we just do not have.