fixing compile issue on centos