This patch allows me to build ghostscript in gub on Ubuntu 11.10. The problem is that ghostscript only looks for sys/types.h in /usr/include, whereas Ubuntu 11.10 has it in /usr/include/x86_64-linux-gnu. This patch just assumes that sys/types.h is always present... is there any modern system where it isn't?