n_tty: Fix n_tty_write crash when echoing in raw mode(see https://github.com/franciscofranco/mako/commit/ec522ba1c3c46fa249db0780183a5191f99c6653) and enable linaro toolchain in build scripts