improve compatibility with CentOS 5