build.sh: add compile log script
makefile: optimizations
Enable -O3

Signed-off-by: ayysir <dresadd09691@gmail.com>
-O3 fixes
enable building with Linaro 4.9 toolchain
Merge branch 'next'