fix compatibility with kernel < 2.6.25