fix compile in centos6