TS-1146: fix the CentOS5 build