glib: Use g_getenv everywhere instead of getenv
getenv()
doesn't work well on Windows, f.ex., it can't fetch env
vars set with SetEnvironmentVariable()
. This also means that it
doesn't work at all when targeting UWP since that's the only way to
set env vars in that case.