I am not sure when this change occurred on my system, but I used to be able to build something that used /usr/include/glib-2.0. But now my build is failing due to glib, and I notice that it is using another version of /usr/local/include/glib-2.0.
How can I get it to use /usr/lib instead of /usr/local/lib for glib? I tried removing /usr/local/include/glib-2.0 and /usr/local/lib/glib-2.0, but it still tries to use those paths and fails.