ci: install pkg-config on Macos runner (cherry picked from commit 86f0c694653eb1f1e91213c7faf3080a96c6375b)