Ok, I copied all my headers from /usr/X11R6.4/include over to xc/exports/include, and it seems to be working now..