Fix compiling on CentOS 6.5