Updated Benson Leung's patches to work with linux kernel version > 3.13.x