Make the plugin compatible with Redmine 2.x.