Fix two compilation errors.

These fixes allows me to compile xbmc on slackware64 14.1 using latest ffmpeg.git