Fix compilation with things other than ffmpeg master. Closes #126.