build adopted to modern kernels