Make krdb a proper library
Making it a library instead of including the source from multiple places has several advantages. We get proper dependency and include path propagation. We can specify the krdb dependencies once instead of repeating them for each kcm. This allows for a better separation between the KCM's actual dependencies and krdb's dependencies.