Remove NOCTTY constant which is not defined on all platforms.