Moved tty-related variables out of kernel's global.h
Moved FS-related variables out of kernel's global.h
Removed unused includes