Add patching to libmad

These are the patches the XBMC team currently use.
Not sure if they fix thumb extraction, but it's worth a shot.