Fix build of POSIX file descriptor functions

Build Large File System functions for 32bit and 64bit correctly.

Fix the previous build fix.
Solves a couple of failing tests.