modified to grant compability to compile compat-wireless with a kernel dir != than /kernel