The patch is good indeed, but the Makefile needs tweaking.
For example, you need to add -DFINAL_BUILD to the CFLAGS to get it out of a crash-galore halfway debug mode.
After doing this I'm STILL getting a lot of crashes, especially in seige.
When I compile the same source on my windows box using the Win32 Release config, it works just fine.
Does anyone know which CFLAGS need to be added or removed?