avoid creating ~~~ (from ~~ ^ -1) which is confusing for asm given the role of ~~
open should not set EISDIR when opening an existing directory with O_CREAT
do not eliminate away tempDoublePtr uses that are alignment fixes; fixes #1375
Merge pull request #1379 from inolen/open_fixes

open should not set EISDIR when opening an existing directory with O_CRE...
Merge pull request #1381 from inolen/tty_fixes

isatty and ttyname fixes
misc ungetc fixes
Convert to new stream API function names
Convert all libc functions to using FS.getStream
initial VFS work

converted to an exception-based API for the FS/VFS

 - added symlink, follow_link, unlink, rmdir, stat, setattr and readdir support to VFS
 - added support for stat, lstat, fstat, fsync, lockf, symlink, readlink, chmod, fchmod, chown, fchown, chdir, fchdir, posix_fallocate, truncate, ftruncate, feof, ferror, fseek
 - removed inode.type property
 - support FS.ignorePermissions
 - added compatibility shims