lcm related kernel/lib hack