fix compilation on centos6