[z2181] Compile fixes software/hardware code exclusions.

 Apply compile fixes for unsupported code, that require additional
 libraries to be installed or are platform specific.

(based on commit [12263] - a3ac115)

(based on commit [s1814] - 2c3489a)