updates to make it build on CentOS 6.