Fixes for build with linaro and Avoid build problem if build with lzo support