Added support for Centos 6.5 and Ubuntu 14.04