libct: add ability to use one library with OpenVZ and upstream kernels