I'm not sure how much help a UNIX board will be in debugging an OSX build, unless an OSX expert crops up; I've done enough porting to OSX to know it's sufficiently different from UNIX to make porting things back and forth a royal pain. I'd suggest giving up building it yourself, and using the
fink system to build it for you. They've got lots of programs listed for OSX, several varieties of VNC among them.