Include kconfig.h (since it will be removed from kpluginfactory.h)
make compile with new KTextEditor: remove start/endEditing
remove package component listed twice in cmake
add missing include and include directories