Include shogun/lib/config.h somewhere before ifndef KDE.h, for instance here.