compat: Added headers and macros to support RHEL7.0