Redmine 2.2 compat patch.