Made it working on CentOS.