rect: Fix compiler warnings
matrix: Avoid shadowing y0
tests: Add backward compat symbols

We use symbols from GLib 2.40, but we can provide backward compatibility
macros for them.