linux 3.8 compatibility fixes