bugfix: add fileno() call in POSIX getFileSize()
bugfix: fix filesize check for 64bit platforms