Well done!
As for the empty folder, I disabled romfs in the makefile. It is not needed for anything, so this folder is not needed anymore.
I can also confirm that the build runs correctly on macOS ARM.
1722627329
Also, the library -lturbojpeg in the makefile is not needed. You can safely remove...