added support for kernel 3.10.x (with older kernel coexistence)

Support added with compiler condition for kernelversion >= 3.10.0.