Check for pkg-config before using it