Add cmake error output in case dependencies for core library are missing
Port to >=libavcodec-55.28