kernel: move KERNEL_BUILD_DIR under BUILD_DIR to properly fix gcc/libc based dependencies