Ensure compatibility with both RHEL 6 and 7.