core: fix compilation on Android (replace include of sys/termios.h by termios.h) (bug #41434)