[trunk] properly handle pkg-config on non-UNIX hosts