Simutrans stopped building with COLOUR_DEPTH=0 a while back because some functions were added to simgraph16.cc. I wrote up a quick fix: https://github.com/artdent/simutrans/compare/headless?expand=1
Also attached as a patch file.
Thanks - committed to trunk revision 6659 (apologies forgot to credit you in log).