Fix build on kernel versions 2.6.36 to 3.5.0