Use a pkg-config wrapper during cross-compilation.

This prevents the build system from trying to use headers and libraries
on the host machine when building for a different architecture.
Merge pull request #611 from ppuryear/pkg-config

Use a pkg-config wrapper during cross-compilation.