Fix build with Redmine 2.4.x