configure / meson: Move check for pty.h to meson.build