Partial patch to work with KOS 2.0.0 and Ubuntu 14.04