I think sc.c should work in OSX/openmcl; the problem appears to be that the configure script didn't set up the -I switch so that C could find the X headers; on my mac they're in /usr/X11R6/include/X11; I'll poke at it tomorrow.