compat: support RHEL6 as a build target