If posix_isatty function doesnot exists . Fixes #35