Make branch 1.5.x compatible to maven 3.1.x

I have taken the Compatibility Changes from master and rewritten the MavenCompatibilityHelper Class, so it works with Maven 2.x as well.

It has been tested with Maven 2.2.1, 3.0.4 and 3.1.1.