I think someone at apple got the top of tree CVS compiling on OS X a while ago... But to do it, he needed to implement SysV Semaphores, which are missing from the PB kernel (xnu 103). I think it should compile fine on Darwin 1.3 or, if you can be bothered, the current CVS version :-)