changes for compiling with linaro