Part of the issue was missing library path to png library. Other part was missing iconv passed to linker.
The exact reason is unclear, but we might as well link just the few libraries that are actually needed for ffmpeg.
This add a basic sanity check that validates the features we use from ffmpeg are actually available Differential Revision: https://developer.blender.org/D5999 Reviewed By: sybren