I assume it can't find the KDE headers now.
g++ -DHAVE_CONFIG_H -I. -I../.. -I/usr/kde/3.5/include/kde
-I/usr/kde/3.5/include/kde/kio -g -O2 -pthread -march=athlon64 -W
-Wall -Wcast-align -Wcast-qual -Wpointer-arith -Wreturn-type -MT
klash_part.lo -MD -MP -MF .deps/klash_part.Tpo -c klash_part.cpp
-fPIC -DPIC -o .libs/klash_part.o
klash_part.cpp:28:22: error: qcstring.h: No such file or directory
klash_part.cpp:29:24: error: qpopupmenu.h: No such file or directory
klash_part.cpp:30:20: error: qtimer.h: No such file or directory
klash_part.cpp:33:24: error: klibloader.h: No such file or directory
klash_part.cpp:34:20: error: kdebug.h: No such file or directory
klash_part.cpp:35:21: error: kconfig.h: No such file or directory
klash_part.cpp:36:27: error: ksimpleconfig.h: No such file or directory
klash_part.cpp:37:21: error: kaction.h: No such file or directory
klash_part.cpp:38:26: error: kapplication.h: No such file or directory
klash_part.cpp:39:21: error: klocale.h: No such file or directory
klash_part.cpp:40:23: error: kinstance.h: No such file or directory
klash_part.cpp:41:28: error: kparts/factory.h: No such file or directory
klash_part.cpp:42:28: error: kstaticdeleter.h: No such file or directory
In file included from klash_part.cpp:44:
klash_part.h:25:21: error: qxembed.h: No such file or directory
klash_part.h:26:22: error: kprocess.h: No such file or directory
# find / -name qcstring.h -print
/usr/qt/3/include/qcstring.h
# env
QTDIR=/usr/qt/3
KDEDIRS=/usr/kde/3.5:/usr:/usr/local:/usr