Fix GLib search when not using gcc, clang or msvc