Tweaked templates + build scripts to get centos5 working