Fix build on kernel versions 2.6.36 to 3.5.0
Merge pull request #14 from JackNorris/master

@JackNorris has glanced at the code and it has fixed itself to build on kernel versions 2.6.36 to 3.5.0