add compiler check and build process into system build script.
add building of base system packages to main system.sh script.