(build) fixed some deprecated ffmpeg calls and build system flags