Add Centos 6.5, Centos 7.0.
Update and fix build of redhat like distros.