fixed index.html and links
swapped broken ptsname() for ptsname_r()
added xsys_fileno() for OSX... following b8826c4
Merge branch 'master' into osx