With this patch the SDL-based 'avplay' media player, which is part of 'libav', can be built. The run script expects a media file named 'mediafile' in the 'bin' directory. Fixes #216.