Build: supply PKG_CHECK_VAR macro missing with older pkg-config
It's used as a fallback when otherwise not available. In order to
remain RHEL6-like dated distros compatible, avoid using AS_VAR_COPY
that was introduced in an autoconf version that arrived later.