Adapt to work on RHEL 7.

Signed-off-by: Andrew Hughes <gnu.andrew@redhat.com>