Make the plugin compatible with Redmine 1.4.x and 2.x