Contribution from Erkki Moorits:

In autoconf.patch I have fixed header installation bug, added libtool
support and tests (all examples are now tests also). Autoconf.patch
also removes autogen.sh, which is replaced by "autoreconf" command
(when running first time it needs "-i" flag). In cpp.patch I added
conditinal extern "C" lines in header files. And in fmod.patch is fix
for the file excutable bits - executable header files are nonsense and
also quite anoying in *nix.