Fix compilation of KDB with cko