Hi,
building (using gcc) and running simutrans on OpenSolaris works like a charm after applying the attached patch and claiming I'm using FreeBSD.
You can see the linker flags needed. Additional a system header defined a type label_t so I renamed it.
This certainly needs some cleanup but I wanted to let the naming to you.