add build Script.
add exit(X) Macro.
fix some build code error.