fix compile error in centos6.x