contrib: use cmake --install separately to install the compiled projects
Hopefully it uses the $(PREFIX) in the .pc files correctly on macos.
Also remove some .pc patching, assuming it is generated properly when using the cmake way.
This could fix the bogus .pc files in MacOS CI.