updates to permit compiling on newer kernels