[z2247] use the absolut path for CMAKE_INSTALL_PREFIX

Before this commit, building with a relative ${PREFIX} would cause the
build to fail.

(based on commit [12352] - b6bdff7)

(based on commit [s1884] - dbb2709)