Fixed bug 1905 - Stack smashing when playing midi file

manuel.montezelo

I am forwarding this bug from Debian's bug tracking system.

It is difficult to summarise the whole thread, but basically Freedink (a game using SDL) aborts when trying to play a midi file due to stack smashing protection functions, GCC fortifying options.

There is more information, including backtraces with files and lines where this is triggered, midi files and instructions on how to reproduce.

http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=694260
Switched from mikmod to libmodplug, which is now in the public domain.
This allows us to add MOD support for iOS and Android, yay!
Fixed detecting modplug when it's not in the pkg-config path
Added the dynamic_modplug.* files to the distribution list