--- ./CMakeLists.txt.orig	2010-10-17 15:17:39.000000000 +0400
+++ ./CMakeLists.txt	2010-10-31 20:48:36.040279705 +0300
@@ -24,6 +24,10 @@
 
 set (KTORRENT_DBUS_XML_DIR ${KTORRENT_SOURCE_DIR}/dbus_xml)
 
+include_directories( BEFORE
+   ${LIBKTORRENT_INCLUDE_DIR}
+)
+
 include_directories( ${KDE4_INCLUDES} 
    ${KTORRENT_BINARY_DIR}
    ${KTORRENT_BINARY_DIR}/libktcore
