CentOS 5 compile fixes