added compatibily #ifs for kernel 3.14