fix centos compiling issue