Add default value for ttyname and lc_ctype

Use the os specific values for these properties as their default values.