Xlib.h not found when building graphviz on Mac OS X 10.8 (Mountain Lion)
After installing XQuartz you may add a symlink to your X11 installation folder by just entering ln -s /opt/X11/include/X11 /usr/local/include/X11 in terminal. That will fix the problem as well without changing any ruby script.