Fix out-of-tree build
Bump GLib requirement to 2.42