contrib: use cmake --install to install CMake targets
It is cleaner than using an internal "install" target which may not be on all CMake generators.
We don't need to know the prefix when compiling. We also don't need multiple threads to install files. They will be better used for compiling files.