I did not have this problem when building the 6 AppImages today but that is because I have had this error in my build log for some time and never knew how to fix it. Not even sure when it started but it was in 2021 or 2022 -- I will narrow it down to see which change created the issue and let you know.
[ 64%] Linking C executable ../../../bin/opj_dump
checking for suffix of executables... /usr/bin/ld: cannot find -lwebp
/usr/bin/ld: cannot find -lzstd
yes
collect2: error: ld returned 1 exit status
make[5]: *** [src/bin/jp2/CMakeFiles/opj_dump.dir/build.make:215: bin/opj_dump] Error 1
make[5]: Leaving directory '/tmp/cinelerra-5.1/thirdparty/openjpeg-2.5.0'
make[4]: *** [CMakeFiles/Makefile2:286: src/bin/jp2/CMakeFiles/opj_dump.dir/all] Error 2
make[4]: Leaving directory '/tmp/cinelerra-5.1/thirdparty/openjpeg-2.5.0'
make[3]: *** [Makefile:172: all] Error 2