added KERNEL_DYNAMIC_DEBUG support