Update build.sh

some updates
tested on CentOS 6.5