Portable POSIX-compatibility layer