Fix issues after enabling the tty attributes again to make it compile