[Build] Use pkg-config only on linux.