glib: fix more hardcoded paths

Fixes #29014.
Closes #29132.
Closes #29142.
Closes #29143.
glib: update 2.40.0_1 bottle.