Fix compilation with older ffmpeg.
Fix compilation under 32bits.