Add some hacks to make it run on 2.6.32