KDE 3.5.1 Konstruct has problems finding necessary header files
I'm trying to install the latest version of KDE (v3.5.1) with Konstruct. However, when Konstruct gets around to building the Qt 3.3.5 components, g++ returns many, many errors associated with various Qt source files. Reading the list of errors, I found that the reason for this is that none of the common header files (i.e. zlib.h, png.h, all the X-Windows headers, like xlib.h, xconf.h, etc. etc.) cannot be found. I tried searching for these files and just copying them over to the directories g++ expects them to be in, and managed to get some parts of Qt to compile, but isn't there an easier way? Is there some script I can modify that changes the target for included files? I don't want to have to copy hundreds of files into Konstruct's directory if I can avoid it!