build: update cross_compile script for linaro 4.8
net: fix compile error for linaro 4.8