fix building examples with lzma library, and zynq c++ linking