Adding autotools and ImageMagick and patch for mpe2