[12372] 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)