Always define NOCTTY since it's not defining propertly on Linux.

See #1853.