slim: add newer kernel compatibility hack