KRandom::random() has been deprecated and AFAICS, the PIM CMake settings disable deprecated API. This causes build failures.