I fixed this by including a missing path for the GL/glew.h header, so the command used to build is:
clang source/stranded.c source/dos.c `sdl2-config --libs --cflags` -I/opt/homebrew/include -lGLEW -framework OpenGL -lpthread
probably this should be already configured in the environment, and normally it should work without the "-I/opt/homebrew/include" argument.
hope I can find some free time to play with this, the CRT filter out of the box looks awesome :)