add build.sh. fix a warning in gcc3.

--HG--
extra : rebase_source : 3dfbe933b6cf52452783f0e9bff9ae216b8a13c7