Changes to makefiles for linaro compiling

Change-Id: Ic5fde19e8115a8f2b7ab57e1e59ee7bac270d6bd