I did compile it for freebsd a long time ago. as i recall the changes were relatively minor.
since I don't have freebsd any more, I can't do it again, but if you like I will try to dig up my old source (which will be 1.0x) so you can mine it for ideas to patch 2.x