Fix CMake files on centos 6

On Centos 6, the CMake files is broken. I have a fix and have tested on Centos 6.5.
@kloudkl : I am fine with the rest of libraries which are installed using "yum install". Maybe you need to add EPEL repository:
http://fedoraproject.org/wiki/EPEL

Could you check it out?