fix compile error on CentOS 6.5