Fix weird install errors on CentOS 6