Update build.sh

some updates
tested on CentOS 6.5
Merge pull request #34 from KG7x/patch-7

Update build.sh