change the actual pkg-config file instead of defining variables

background: when using --define-variable=prefix=..., pkg-config also applies that
to all referenced pkg-config files. For example, GLFW uses several X libraries on
Linux. The path to those libraries gets overwritten incorrectly because they use the
same 'prefix' variable