Fix build on RHEL 6.6

fixes #7485