Updated build script to include proper dependencies for CentOS distributions