add build.sh for mac platform

Add build.sh for mac platform and improve document.