Patch to make compatible with linux kernel > 3