More GCC 4.6 fixes.

This should be it. The `g_path_local` definition is somewhat arbitrary.