Only use trait compat hack if we actually run in < 5.4