radi_sh's patch
Thank radi_sh!
Added 005SH support
fix build errors using gcc-4.7
add build script