[z2165] Fix Extracting for cmake.

(based on commit [12243] - a4b3bc5)

(based on commit [s1797] - ce57530)