Compile mpv and ffmpeg with optimizations.