IBT: fixes for ioctls
ENH: Fix for 2.6.39+ newer kernels